package com.example.elm_server_api.service.impl;

import com.example.elm_server_api.domain.Shop;
import com.example.elm_server_api.mapper.ShopMapper;
import com.example.elm_server_api.service.IShopService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service("shopService")
@Transactional
public class ShopServiceImpl implements IShopService {

    @Autowired
    ShopMapper shopMapper;

    @Override
    public List<Shop> selectAll() {
        return this.shopMapper.selectAll();
    }

    @Override
    public int deleteByPrimaryKey(Long id) {
        return this.shopMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(Shop record) {
        return this.shopMapper.updateByPrimaryKeySelective(record);
    }
}
